package com.winter.Controller;


import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.winter.service.IcompanypositionService;
import com.winter.util.Result;

@RestController
@RequestMapping("/icompanyposition")
public class IcompanypositionController {
	
	@Resource
	private IcompanypositionService icompanypositionService;
	
	/*
     * 金融圈列表
     */
	@GetMapping("/icompanyCardList")
	public Result icompanyCardList(Integer pageSize, Integer pageNumber,String comClass,String comSubClass,String userNo,String key) {
    	return icompanypositionService.icompanyCardList(pageSize, pageNumber, comClass, comSubClass, userNo, key);
    }
	
	/*
     * 通过id查询金融圈信息
     */
	@GetMapping("/getIcompany")
	public Result getIcompany(Long id,String userNo) {
    	return icompanypositionService.getIcompany(id,userNo);
    }
}
